﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HZ.Supervise.Model;

namespace HZ.Supervise.Web.Message
{
    public partial class MessageFinalDetailForType10 : System.Web.UI.Page
    {
        IBLL.IBLL_MessageTypeDetail ibllMessage = new BLL.BLL_MessageTypeDetail();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindList();
            }
        }

        void BindList()
        {
            string _strCompanyId = Request.QueryString["CompanyId"];
            string _strMessDetailId = Request.QueryString["MessDetailId"];

            int count = 0;

            Model.MessageSend messSend = new MessageSend();
            messSend.UserId = CurrentAccount.UserID.ToString();
            messSend.MessageDetailId = _strMessDetailId;
            messSend.CompanyId_Jy = _strCompanyId;
            gvwMessageList.DataSource = ibllMessage.GetDetailMessagSend(messSend, AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, out count);
            gvwMessageList.DataBind();
            AspNetPager1.RecordCount = count;
        }
        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            BindList();
        }

        protected void btnDelte_Click(object sender, EventArgs e)
        {

        }

        protected void gvwMessageList_RowCommand(object sender, GridViewCommandEventArgs e)
        {

        }
    }
}
